import json
from config import BASE_DIR
def read_json(file_path):
    file_path = BASE_DIR+"/data/"+file_path
    with open(file_path,encoding="utf-8") as f:
        data = json.load(f)
        new_list= []
        for i in data:
            new_list.append(tuple(i.values()))
            # print(i.values())
        # print(new_list)
        return new_list
        # return [tuple(i.values()) for i in data]

print(read_json("login.json"))